package com.lianxi

/**
  * Created by adengdeng on 2017/8/5 
  */
object Lx1 {

  def signum(input: Int) = {
    if (input > 0) 1
    else if (input < 0) -1
    else 0
  }

  def main(args: Array[String]): Unit = {

    println(signum(-2))
    println(signum(2))
    println(signum(0))
  }
}
